package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppWxModelConfig;
import com.irdstudio.apicenter.console.dm.AppWxModelConfigDao;




@Service(value = "appWxModelConfigService")
public class AppWxModelConfigService {
	
	@Autowired
	private AppWxModelConfigDao appWxModelConfigDao;
	
	public int insertOne(AppWxModelConfig appWxModelConfig) throws SQLException,
	ClassNotFoundException {
		return appWxModelConfigDao.save(appWxModelConfig);
	}
	
	public AppWxModelConfig queryAppTradePrivate(String dxModelId, int modelLineNum) throws SQLException {
		return appWxModelConfigDao.queryWithKeys(dxModelId, modelLineNum);
	}
	
	public int update(AppWxModelConfig appWxMenuConfig) throws SQLException,
		ClassNotFoundException {
		return appWxModelConfigDao.update(appWxMenuConfig);
	}
	
	public int delete(String dxModelId, int modelLineNum) throws SQLException,
		ClassNotFoundException {
		return appWxModelConfigDao.delete( dxModelId,  modelLineNum);
	}

	
	
}
